package com.taotao.designpattern.event.proccessor;


/**
 * @author fanbeibei
 * @version 1.0
 * @date 2021/1/5 16:06
 */
public abstract class AbstractJobListener implements JobListener {


    @Override
    public void onTriggerResult(JobTriggerResult triggerResult) {

       // 更新任务触发状态
    }



    @Override
    public void onRunResult(JobRunResult runResult) {
        //更新任务运行结果

    }


    @Override
    public void onJobComplete(JobRunResult runResult) {
        if (JobRunResult.RESULT_SUCCESS == runResult.getResult()) {
            triggerLowerJob();
        }
    }


    protected abstract void triggerLowerJob();
}
